var gzImagePlugin = {
    createEvent: function(url,name,location2,  successCallback, errorCallback) {

        cordova.exec(
            successCallback, // success callback function
            errorCallback, // error callback function
            'GZImagePlugin', // mapped to our native Java class called "CalendarPlugin"
            location2, // with this action name
            [{                  // and this array of custom arguments to create our entry
                "Pic_url":url,
                "Pic_name":name,
            }]
        );
    }
}